//
//  AFAPIClient.h
//  Edusoho
//
//  Created by Edusoho on 14-6-25.
//  Copyright (c) 2014年 Kuozhi Network Technology. All rights reserved.
//

#import "AFHTTPRequestOperationManager.h"

@interface AFAPIClient : AFHTTPRequestOperationManager

/**
 *  ESAPI client singleton.
 *
 *  @return singleton of API client.
 */
+ (instancetype)sharedClient;

/**
 *  Reset singleton client.
 */
+ (void)resetSharedClient;

/**
 *  Add http header.
 *
 *  @param headerData  value.
 *  @param fieldString filed.
 *
 *  @return API client.
 */
- (instancetype)addHeader:(NSString *)headerData forField:(NSString *)fieldString;

/**
 *  Check network.
 *
 *  @return Reachable or not.
 */
- (BOOL)isNetworkReachable;

@end
